﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="ChangePassword.aspx.cs" Inherits="ChangePassword" Title="Change Password" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h3>
        Change Password</h3>
    <table>
        <tr>
            <td>
                User name
            </td>
            <td>
                <asp:Label runat="server" ID="lbl_Username" Font-Bold="True"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Old password
            </td>
            <td>
                <asp:TextBox runat="server" ID="tb_OldPassword" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rv_OldPassword" runat="server" ErrorMessage="* Required"
                    ControlToValidate="tb_OldPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                New password
            </td>
            <td>
                <asp:TextBox runat="server" ID="tb_NewPassword" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rv_NewPassword" runat="server" ErrorMessage="* Required"
                    ControlToValidate="tb_NewPassword"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Confirm new password
            </td>
            <td>
                <asp:TextBox runat="server" ID="tb_Confirm" TextMode="Password"></asp:TextBox>
                <asp:CompareValidator ID="cv_Confirm" runat="server" ErrorMessage="New password and confirm did not match"
                    ControlToCompare="tb_NewPassword" ControlToValidate="tb_Confirm" ValueToCompare="Text" Display="Dynamic"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="rv_Confirm" runat="server" ErrorMessage="* Required" Display="Dynamic"
                    ControlToValidate="tb_Confirm"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label runat="server" ID="lbl_Notice" Font-Bold="True"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button runat="server" ID="btn_Save" Text="Save" CssClass="button" 
                    onclick="btn_Save_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
